package com.tomshushu.doc.freedoc.modular.projectuser.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.tomshushu.doc.freedoc.modular.projectuser.entity.ProjectUserEntity;
import com.tomshushu.doc.freedoc.modular.projectuser.model.param.AddProjectUserParam;
import com.tomshushu.doc.freedoc.modular.projectuser.model.param.GetUserByProjectParam;
import com.tomshushu.doc.freedoc.modular.projectuser.model.param.UpdatePermissionPram;
import com.tomshushu.doc.freedoc.modular.projectuser.model.result.GetUserByProjectResult;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @description:
 * @author: zhouhong
 * @date: 2025-06-11 12:46
 * @version: 1.0
 */
public interface ProjectUserService extends IService<ProjectUserEntity> {
    /**
     * 批量添加用户项目关系
     * @param param
     */
    void addProjectUser(AddProjectUserParam param);

    /**
     * 批量删除用户项目关系
     * @param param
     */
    void deleteProjectUser(AddProjectUserParam param);

    /**
     * 修改用户项目权限
     * @param pram
     */
    void updatePermission(UpdatePermissionPram pram);

    /**
     * 根据项目id获取项目用户列表
     * @param pram
     * @return
     */
    List<GetUserByProjectResult> getUserByProjectId(@RequestBody GetUserByProjectParam pram);

}